import {defineStore} from "pinia"

const useUserStore = defineStore("userInfo",{
    state: ()=>{
        return {
            userInfo: {
                id:0,
                name:'default'
            }
        }
    },
    actions: {
        login(userInfo){
            this.userInfo=userInfo
        }
    }
})

export default useUserStore